﻿using System;
using Admin.Util;
using Furion;
using SqlSugar;

namespace Admin.Core
{
    /// <summary>
    /// 系统用户表
    /// </summary>
    [SugarTable("Base_User")]
    public class BaseUser : SugarEntity<string>
    {
        /// <summary>
        /// 账号
        /// </summary>
        public string Account { get; set; }

        /// <summary>
        /// 密码（采用 MD5 加密）
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string Nickname { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string Photo { get; set; }

        /// <summary>
        /// 简介
        /// </summary>
        public string Synopsis { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public Gender Gender { get; set; }

        /// <summary>
        /// 最近登录时间
        /// </summary>
        public DateTime SigninedTime { get; set; }

        /// <summary>
        /// 最近登录Ip地址
        /// </summary>
        public string SigninedIP { get; set; }

        /// <summary>
        /// 用户所属部门
        /// </summary>
        public string DepId { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; }
    }
}
